import common from "utilMethods/common"

const state = {
  dateOfToday: '',
}

const getters = {

}

const actions = {
  setDateOfToday (context) {
    context.commit('stageDateOfToday')
  }
}

const mutations = {
  stageDateOfToday (state) {
    state.dateOfToday = common.getCurrentTime().slice(0, 10)
  }
}

export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}